package com.t.bricks.bussiness.db.mapper.rightmanage;

import org.apache.ibatis.annotations.Mapper;

import com.t.bricks.bussiness.db.entity.rightmanage.RightManage;
import com.t.bricks.bussiness.db.entity.rightmanage.base.RightManageBase;

@Mapper
public interface RightManageMapper {
	
	/**
	 * 添加
	 * @Param rightManage
	 * @return
	 */
	int add(RightManage rightManage);

	/**
	 * 检查待修改内容是否存在重复数据
	 * @Param rightManageBaseData
	 * @return 重复返回true
	 */
	int checkRepeatByEdit(RightManageBase rightManageBase);

	/**
	 * 检查待新增内容是否存在重复数据
	 * @Param rightManageData
	 * @return 重复返回true
	 */
	int checkRepeatByAdd(RightManage rightManageBase);

}
